//
//  PPHomeDashboardView.h
//  pickpic
//
//  Created by Jinxiao on 9/6/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import <UIKit/UIKit.h>

@class PPHomeDashboardViewBadgeCell;
@class PPHomeDashboardView;

@protocol PPHomeDashboardViewDelegate <NSObject>

- (void)dashboardViewDidTriggerToggling:(PPHomeDashboardView *)dashboardView;

- (void)dashboardView:(PPHomeDashboardView *)dashboardView didSelectBadgeCell:(PPHomeDashboardViewBadgeCell *)badgeCell;

@end

@interface PPHomeDashboardView : UIView

@property (readwrite, nonatomic, weak) id<PPHomeDashboardViewDelegate> delegate;

- (void)triggerDismiss;

- (void)dismissWithDuration:(NSTimeInterval)duration animated:(BOOL)animated completion:(void (^)(void))completion;

- (void)reset;

@end
